
<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;

$_OBJECT_IFACE_PANEL = _app_create_iface_panel ();
$_OBJECT_IFACE_DISPLAY->insert_container ($_OBJECT_IFACE_PANEL);

$indexes = array (
	title=>array (label=>"Title",order=>"DEFAULT",wrapper=>"vmc_icon_category"),
	details=>array (label=>"Details",order=>"DEFAULT"),
	code=>array (label=>"Code",order=>"DEFAULT",wrapper=>"vmc_icon_code"),
	cdate=>array (label=>"Create Date",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
);

$object_ctl = "/admin/projects/phases/categories/fs_categories.php?fs_action=view&fs_tab=main&";
$link_options = "";
$list_options = array (
	array (
		label=>"Create A Phase Category",
		link=>"fs_categories.php?fs_action=addnew"
	),
);

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
                db_conn=>$_GLOBAL_DBH,
                indexes=>$indexes,
		list_count=>"SELECT COUNT(*) FROM categories",
		list_select=>"SELECT * FROM categories",
                list_id=>"lc_categories",
		list_title=>"&nbsp;&raquo;&nbsp;Phase Categories",
                list_options=>$list_options,
                primary_key=>"id",
                primary_relation=>"category_id",
                link_options=>$link_options,
                object_ctl=>$object_ctl
));


$_OBJECT_IFACE_PANEL->insert_container ($_OBJECT_IFACE_LIST);

?>
